package cn.zcib.tms.model;

import java.util.Date;

public class User {
    private Integer uId;

    private String uName;

    private String uPassword;

    private String uPhone;

    private Integer uRole;

    private Date uCreateTime;

    private Date uLoginTime;

    public User(Integer uId, String uName, String uPassword, String uPhone, Integer uRole, Date uCreateTime, Date uLoginTime) {
        this.uId = uId;
        this.uName = uName;
        this.uPassword = uPassword;
        this.uPhone = uPhone;
        this.uRole = uRole;
        this.uCreateTime = uCreateTime;
        this.uLoginTime = uLoginTime;
    }

    public User() {
        super();
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName == null ? null : uName.trim();
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword == null ? null : uPassword.trim();
    }

    public String getuPhone() {
        return uPhone;
    }

    public void setuPhone(String uPhone) {
        this.uPhone = uPhone == null ? null : uPhone.trim();
    }

    public Integer getuRole() {
        return uRole;
    }

    public void setuRole(Integer uRole) {
        this.uRole = uRole;
    }

    public Date getuCreateTime() {
        return uCreateTime;
    }

    public void setuCreateTime(Date uCreateTime) {
        this.uCreateTime = uCreateTime;
    }

    public Date getuLoginTime() {
        return uLoginTime;
    }

    public void setuLoginTime(Date uLoginTime) {
        this.uLoginTime = uLoginTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", uName='" + uName + '\'' +
                ", uPassword='" + uPassword + '\'' +
                ", uPhone='" + uPhone + '\'' +
                ", uRole=" + uRole +
                ", uCreateTime=" + uCreateTime +
                ", uLoginTime=" + uLoginTime +
                '}';
    }
}